package com.dfbz.demo01_OutputStream;

import java.io.File;
import java.io.FileOutputStream;
import java.io.OutputStream;

/**
 * @author lscl
 * @version 1.0
 * @intro:
 */
public class Demo01_FileOutputStream构造方法 {
    public static void main(String[] args) throws Exception{

        OutputStream os =new FileOutputStream("D:/001.txt");

        OutputStream os2 =new FileOutputStream(new File("001.txt"));




        // 释放资源
        os.close();
        os2.close();
    }
}
